package com.tjsinfo.tjsoa.system.vo;

/**
 * TSystemUser entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class TSystemUser implements java.io.Serializable {

	// Fields

	private Integer userId;
	private String uuid;
	private String loginName;
	private String password;
	private Byte state;
	private String userName;
	private String email;
	private Integer orderNo;
	private Integer dataBaseId;
	private Integer subUserId;
	private String  subUserName;
	// Constructors

	public String getSubUserName() {
		return subUserName;
	}

	public void setSubUserName(String subUserName) {
		this.subUserName = subUserName;
	}

	/** default constructor */
	public TSystemUser() {
	}

	/** minimal constructor */
	public TSystemUser(String loginName, String password, Byte state,
			String userName) {
		this.loginName = loginName;
		this.password = password;
		this.state = state;
		this.userName = userName;
	}

	/** full constructor */
	public TSystemUser(String uuid, String loginName, String password,
			Byte state, String userName, String email, Integer orderNo) {
		this.uuid = uuid;
		this.loginName = loginName;
		this.password = password;
		this.state = state;
		this.userName = userName;
		this.email = email;
		this.orderNo = orderNo;
	}

	// Property accessors
	
	
	
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUuid() {
		return this.uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getLoginName() {
		return this.loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Byte getState() {
		return this.state;
	}

	public void setState(Byte state) {
		this.state = state;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Integer getOrderNo() {
		return this.orderNo;
	}

	public void setOrderNo(Integer orderNo) {
		this.orderNo = orderNo;
	}

	public Integer getDataBaseId() {
		return dataBaseId;
	}

	public void setDataBaseId(Integer dataBaseId) {
		this.dataBaseId = dataBaseId;
	}

	public Integer getSubUserId() {
		return subUserId;
	}

	public void setSubUserId(Integer subUserId) {
		this.subUserId = subUserId;
	}
	
	
    public boolean equals(TSystemUser st) 
    { 
        if (userId.equals(st.getUserId())) {
        	return true;
        } else{
        	return false;
        }
        
    } 
    
    public int hashCode() 
    { 
        return new Integer(userId).hashCode(); 
    } 
}